import request from '@/utils/request'

export function getAgencyRanks() {
  return request({
    url: '/agencyManager/agency/employess/agencyRanks',
    method: 'get'
  })
}

export function getList(params) {
  return request({
    url: '/agencyManager/agency/employess/pageInfo',
    method: 'post',
    data:params
  })
}

export function add(params) {
  return request({
    url: '/agencyManager/agency/employess/create',
    method: 'post',
    data:params
  })
}

export function update(params) {
  return request({
    url: '/agencyManager/agency/employess/update',
    method: 'post',
    data:params
  })
}

export function getId(id) {
  return request({
    url: '/agencyManager/agency/employess/Info',
    method: 'post',
    data:{agencyUserId:id}
  })
}

export function toggleId(params) {
  return request({
    url: '/agencyManager/agency/employess/action',
    method: 'post',
    data:params
  })
}

